package com.ruoyi.system.mapper;


import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.SysUserJudges;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * 教师邀请信息
 */
public interface SysUserJudgesMapper {

    /**
     *  发送邀请生成一条教师邀请信息
     */
    public void saveSysUserJudgesMapper(SysUserJudges sysUserJudges);

    /**
     * 修改邀请状态为已接受
     */
    public void updateStateAccept(Integer jid);

    /**
     * 修改邀请状态为已拒绝
     */
    public void updateStateRefuse(Integer jid);

    /**
     * 根据赛事id和邀请状态为0 拒绝
     * */
    List<SysUserJudges> selectByEpidAndStatus(int epid);

    @Delete("delete from sys_user_judges where jid = #{sys_user_judges}")
    Integer deleteByJid(Integer jid);
}
